import request from '@/utils/request'

// 查询托盘明细列表
export function listTrayDetail(query) {
  return request({
    url: '/bill/trayDetail/list',
    method: 'get',
    params: query
  })
}

// 查询托盘明细详细
export function getTrayDetail(id) {
  return request({
    url: '/bill/trayDetail/' + id,
    method: 'get'
  })
}

// 新增托盘明细
export function addTrayDetail(data) {
  return request({
    url: '/bill/trayDetail',
    method: 'post',
    data: data
  })
}

// 修改托盘明细
export function updateTrayDetail(data) {
  return request({
    url: '/bill/trayDetail',
    method: 'put',
    data: data
  })
}

// 删除托盘明细
export function delTrayDetail(id) {
  return request({
    url: '/bill/trayDetail/' + id,
    method: 'delete'
  })
}
